<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>删除成员信息</title>
</head>

<body>
<?php
$id = $_GET ['id'];
$mysql_server_name = "localhost";
$mysql_username = "root";
$mysql_password = "root";
$mysql_database = "db_shop";

$conn = mysql_connect ( $mysql_server_name, $mysql_username, $mysql_password );
mysql_query ( "set names 'utf8'" );

$sql = "delete from member where member_id='$id'";
// require_once('page.php');
// page($sql,'room.php',"5");//这几个是分页的句子
// $sql = " SELECT * FROM room ORDER BY room_id DESC limit".$begincount.",".$rows;
mysql_select_db ( $mysql_database );
$result = mysql_query ( $sql );

if ($result == true) {
	echo "<script>alert('删除信息成功!!'); window.location.href='member.php';</script>";
} else {
	echo "<script>alert('删除信息失败!!'); window.location.href='member.php';</script>";
}

?>
</body>
</html>
